package com.coderfans.datagithub.service;

import com.coderfans.datagithub.dao.UserDao;
import com.coderfans.datagithub.model.GitHubUser;
import com.coderfans.datagithub.model.UserModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ${fanchunshuai} on 2016-10-24.
 *
 * @version: V1.0
 * @Desc:
 * @Copyright (c) 2016 58到家-版权所有
 */
@Service("userService2")
public class UserServiceImpl implements UserService{

    @Resource
    private UserDao userDao;
    @Override
    public int insertUser(UserModel user) {
        System.out.println("-----------------------------");
        return 0;
    }

    @Override
    public List<UserModel> getUser() {
        return userDao.getUser();
    }
}
